<template>
  <div class="wrapper">
    <slot></slot>
    <el-button v-for="(item, index) in data" :key="index">点击</el-button>
  </div>
</template>
<script>
export default {
  name: 'UseLessComp',
  data(){
    return {
      data: 0
    }
  },
  mounted(){
    setTimeout(() => {
      this.data = 5;
      console.log('update data');
    }, 2000);
  },
  created(){
    console.log('created');
  }
}
</script>